package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BAnjuan;
import com.ruoyi.system.mapper.BAnjuanMapper;
import com.ruoyi.system.service.IBAnjuanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * 查看案卷信息Service业务层处理
 * 
 * @author zzr
 * @date 2023-09-13
 */
@Service
public class BAnjuanServiceImpl implements IBAnjuanService 
{
    @Autowired
    private BAnjuanMapper bAnjuanMapper;

    /**
     * 查询查看案卷信息
     * 
     * @param id 查看案卷信息主键
     * @return 查看案卷信息
     */
    @Override
    public BAnjuan selectBAnjuanById(String id)
    {
        return bAnjuanMapper.selectBAnjuanById(id);
    }

    /**
     * 查询查看案卷信息
     *
     * @param ids 查看案卷信息主键
     * @return 查看案卷信息
     */
    @Override
    public List<BAnjuan> selectBAnjuanByIds(String[] ids) {return bAnjuanMapper.selectBAnjuanByIds(ids);}


    @Override
    public Long selectLastZongJuanNo(){return bAnjuanMapper.selectLastZongJuanNo();}

    /**
     * 查询查看案卷信息列表
     * 
     * @param bAnjuan 查看案卷信息
     * @return 查看案卷信息
     */
    @Override
    public List<BAnjuan> selectBAnjuanList(BAnjuan bAnjuan)
    {
        return bAnjuanMapper.selectBAnjuanList(bAnjuan);
    }

    /**
     * 新增查看案卷信息
     * 
     * @param bAnjuan 查看案卷信息
     * @return 结果
     */
    @Override
    public int insertBAnjuan(BAnjuan bAnjuan)
    {
        return bAnjuanMapper.insertBAnjuan(bAnjuan);
    }

    /**
     * 修改查看案卷信息
     * 
     * @param bAnjuan 查看案卷信息
     * @return 结果
     */
    @Override
    public int updateBAnjuan(BAnjuan bAnjuan)
    {
        return bAnjuanMapper.updateBAnjuan(bAnjuan);
    }

    /**
     * 批量删除查看案卷信息
     * 
     * @param ids 需要删除的查看案卷信息主键
     * @return 结果
     */
    @Override
    public int deleteBAnjuanByIds(String[] ids)
    {
        return bAnjuanMapper.deleteBAnjuanByIds(ids);
    }

    /**
     * 删除查看案卷信息信息
     * 
     * @param id 查看案卷信息主键
     * @return 结果
     */
    @Override
    public int deleteBAnjuanById(String id)
    {
        return bAnjuanMapper.deleteBAnjuanById(id);
    }

    @Override
    public BAnjuan[] selectByGid(String gid){ return bAnjuanMapper.selectByGid(gid);}

    @Override
    public int updateAnJuanBySql(HashMap<String, Object> pMap){return bAnjuanMapper.updateAnJuanBySql(pMap);}

    @Override
    public List<BAnjuan> selectBAnjuanListReporter(BAnjuan bAnjuan){
        return bAnjuanMapper.selectBAnjuanListReporter(bAnjuan);
    }
}
